package edu.predatorwars.client.visualization;

import com.badlogic.gdx.graphics.Mesh;
import com.badlogic.gdx.math.Matrix4;

public class VisResource extends VisModel {
	private ResourceExt resource;
	
	public VisResource(ResourceExt Resource) {
		super();
		resource = Resource;
		refreshText();
	}
	
	public VisResource(ResourceExt Resource, int len1D, int len2D, boolean randomOrientation) {
		super(Resource.getResourceLocation(), len1D, len2D, randomOrientation);
		resource = Resource;
		refreshText();
	}
	
	public VisResource(ResourceExt Resource, Mesh Model, Matrix4 MVMatrix) {
		super(Model, MVMatrix);
		resource = Resource;
		refreshText();
	}
	
	
	public ResourceExt getResource() {
		return resource;
	}
	
	
	public void setResource(ResourceExt Resource) {
		resource = Resource;
		
	}
	
	public void refreshText() {
		this.setMoverText(resource.getDescription());
	}
	
}